﻿<%--
 *  File:    AllFlowReports.jsp
 *  @Author: Jackwang
 *  Date:    2012/07/14
--%>

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="org.apache.log4j.Category"%>

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom"%>
<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.AllFlowReports"); 

	//init param
	String strModuleName = "COM";
	String privilegeCode = "ALL";
	String strTableName = "v_zylallmonthreport";
	String contextPath = request.getContextPath();
%>
<% //--------------------------------------  include files list --%>
<%@ include file="/inc/FrmDefault.inc"%>
<%@ include file="/inc/PageDefault.inc"%>
<%@ include file="/inc/LocationDefault.inc"%>
<!--Security.inc" --权限
-->
<%@ include file="/rpt/ReportURL.inc"%>

<html>
<head>
<title>AllFlowReports.jsp</title>
<PageFlow:CheckPageFlow pageName="p_zylallmonthreport" />
<link rel="stylesheet"
	href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css"
	type="text/css">
<script language="JavaScript"
	src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<!-- summaryPrepare -->
<%@ include file="/inc/SummaryDivision.inc"%>
<%
Vector searchresults = (Vector)pageContext.getAttribute("totalsummary");
if(searchresults == null) searchresults = new Vector();
Vector periodmanagervector = (Vector) pageContext.getAttribute("periodmanagervector");
HashMap UserInfo = (HashMap) session.getAttribute("userinfo");
if (UserInfo == null) UserInfo = new HashMap();
Integer loginemployeeid = (Integer)UserInfo.get("employeeid");
String  isadmin=(String)UserInfo.get("isadmin");
%>
<script>
function page_summary(actionvalue,orderbyname){
    if(!checkForm(document.cform))return;
	var editform = summaryPrepare(cform,actionvalue,orderbyname);
	if(!editform) return;
	var serbunchnotype=document.cform.serbunchnotype.value;
	
	var startyears = document.cform.startyears.value;
	var startmonths = document.cform.startmonths.value;
	var endyears = document.cform.endyears.value;
	var endmonths = document.cform.endmonths.value;
	
	var e = new Date();
	if(Number(startyears) == -1){
	   document.cform.startyears.value=e.getFullYear();
	}
	if(Number(endyears) == -1){
	   document.cform.startmonths.value=e.getMonth()+1;
	}
	if(Number(startmonths) == -1){
	   document.cform.endyears.value=e.getFullYear();
	}
	if(Number(endmonths) == -1){
	
	   document.cform.endmonths.value=e.getMonth()+1;
	}
	//var time1       = document.cform.startyears.value+"-"+document.cform.startmonths.value+"-1";
    //var time2       = document.cform.startyears.value+"-"+document.cform.startmonths.value+"-1";
    var date1       = new Date(document.cform.startyears.value,document.cform.startmonths.value,1);
    var date2       = new Date(document.cform.endyears.value,document.cform.endmonths.value,1);
    //alert(date1+" "+date2);
    if(date1 - date2 > 0){
      alert("请输入正确的时间！");
	  return;
	}
	getzyldate();
	editform.action = "AllFlowReports.jsp?<%= OvalTools.randomURL() %>&serbunchnotype="+serbunchnotype;
	editform.target = "_self";
	isRunning = true;
	editform.submit();  
}


function popRep() {
	//var regionid=cform.regionid.value;
	//var proviceofficecode = document.cform.proviceofficelist.value;
	//var businessareacode = document.cform.businessarealist.value;
	var regioncode=document.cform.regioncode.value;
	var status = "height=400, width=600, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";
	var url = "<%=contextPath%>/masterdata/ogm/RegionSelect.jsp?<%= OvalTools.randomURL() %>&regioncode="+regioncode;
	
	popwindow = window.open(url, "newwindow", status);
  }

var popwindow;

function page_setRegion(code,name)
{
  if(code != document.cform.regioncode.value)
  {
    //document.cform.citycode.value = " ";
    //document.cform.cityname.value = " ";
    //document.cform.countycode.value = " ";
    //document.cform.countyname.value = " ";
  }
  document.cform.regioncode.value= code;
  document.cform.regionname.value = name;
  if (popwindow != null)
    popwindow.close();
}


function page_excel(){
    if(!checkForm(document.cform))return;
	var dealerid = document.cform.dealerid.value;	
	var startyears = document.cform.startyears.value;
	var startmonths = document.cform.startmonths.value;
	var endyears = document.cform.endyears.value;
	var endmonths = document.cform.endmonths.value;
	var prodcode = document.cform.prodcode.value;
	var categoryid=document.cform.categoryid.value;
	var regioncode=document.cform.regioncode.value;
	var employeeid=document.cform.employeeid.value;
	<%if(!"Y".equals(isadmin)){%>
	  regioncode=regioncode+"&employeeid="+employeeid;
	<%}%>
	if(Number(startyears) == -1){
	   document.cform.startyears.value=e.getFullYear();
	}
	if(Number(endyears) == -1){
	   document.cform.startmonths.value=e.getMonth()+1;
	}
	if(Number(startmonths) == -1){
	   document.cform.endyears.value=e.getFullYear();
	}
	if(Number(endmonths) == -1){
	   document.cform.endmonths.value=e.getMonth()+1;
	}
	var date1       = new Date(document.cform.startyears.value,document.cform.startmonths.value,1);
    var date2       = new Date(document.cform.endyears.value,document.cform.endmonths.value,1);
    //alert(date1+" "+date2);
    if(date1 - date2 > 0){
      alert("请输入正确的时间！");
	  return;
	}
	getzyldate();
	var serbunchnotype=document.cform.serbunchnotype.value;
	if(serbunchnotype != "" && serbunchnotype != null ){
	if(serbunchnotype ==2){
	
	//alert("<%= reportURL %>/servlet/ExcecuteReport/MonthlySalesMerge.sox?__format=xlsx&__folder=/ovalreport&dealerid="+dealerid+"&startdate="+document.cform.startdate.value+"&enddate="+document.cform.enddate.value+"&prodcode="+prodcode+"&categoryid="+categoryid+"&regioncode="+regioncode);
 	  window.open("<%= reportURL %>/servlet/ExcecuteReport/MonthlySalesMerge.sox?__format=xlsx&__folder=/ovalreport&dealerid="+dealerid+"&startdate="+document.cform.startdate.value+"&enddate="+document.cform.enddate.value+"&prodcode="+prodcode+"&categoryid="+categoryid+"&regioncode="+regioncode);
     }
     if(serbunchnotype ==4){

     
     window.open("<%= reportURL %>/servlet/ExcecuteReport/MonthlyPurchaseMerge.sox?__format=xlsx&__folder=/ovalreport&dealerid="+dealerid+"&startdate="+document.cform.startdate.value+"&enddate="+document.cform.enddate.value+"&prodcode="+prodcode+"&regioncode="+regioncode+"&categoryid="+categoryid);
     }
    }
 }
 function page_csv(){
    if(!checkForm(document.cform))return;
	var dealerid = document.cform.dealerid.value;	
	var startyears = document.cform.startyears.value;
	var startmonths = document.cform.startmonths.value;
	var endyears = document.cform.endyears.value;
	var endmonths = document.cform.endmonths.value;
	var prodcode = document.cform.prodcode.value;
	var categoryid=document.cform.categoryid.value;
	var regioncode=document.cform.regioncode.value;
	var employeeid=document.cform.employeeid.value;
	<%if(!"Y".equals(isadmin)){%>
	  regioncode=regioncode+"&employeeid="+employeeid;
	<%}%>
	if(Number(startyears) == -1){
	   document.cform.startyears.value=e.getFullYear();
	}
	if(Number(endyears) == -1){
	   document.cform.startmonths.value=e.getMonth()+1;
	}
	if(Number(startmonths) == -1){
	   document.cform.endyears.value=e.getFullYear();
	}
	if(Number(endmonths) == -1){
	   document.cform.endmonths.value=e.getMonth()+1;
	}
	var date1       = new Date(document.cform.startyears.value,document.cform.startmonths.value,1);
    var date2       = new Date(document.cform.endyears.value,document.cform.endmonths.value,1);
    //alert(date1+" "+date2);
    if(date1 - date2 > 0){
      alert("请输入正确的时间！");
	  return;
	}
	getzyldate();
	var serbunchnotype=document.cform.serbunchnotype.value;
	if(serbunchnotype != "" && serbunchnotype != null ){
	 if(serbunchnotype ==2){
		window.open("<%= reportURL %>/csv?__report=/ovalreport/MonthlySalesMerge.txt&dealerid="+ dealerid+"&startdate="+document.cform.startdate.value+"&enddate="+document.cform.enddate.value+"&prodcode="+prodcode+"&categoryid="+categoryid+"&regioncode="+regioncode);	
      }
     if(serbunchnotype ==4){
       window.open("<%= reportURL %>/csv?__report=/ovalreport/MonthlyPurchaseMerge.txt&dealerid="+ dealerid+"&startdate="+document.cform.startdate.value+"&enddate="+document.cform.enddate.value+"&prodcode="+prodcode+"&regioncode="+regioncode+"&categoryid="+categoryid);	
     }
    }
 }
 function frm_select(e,flag,i){
	isHidden = "block";
	var _target = getPosition(e);
    var _obj = document.getElementById("summaryfrm");
    _obj.style.left = _target.x -2;
    _obj.style.top = _target.y +  e.clientHeight - 74;
    _obj.style.height="250px";
    _obj.style.width="530px";
    _obj.style.zIndex = 5000;
    _obj.style.display = "block";
	index = i;
	var strUrl = "";
	if(flag==1){
		strUrl = "HospitalSelectPop.jsp?maxitem=8&index=" + index + "&<%= OvalTools.randomURL() %>";
	}else if(flag==2){
		strUrl = "OrgSelectPop.jsp?maxitem=8&globalpccode=112&index=" + index + "&<%= OvalTools.randomURL() %>";
	}else if(flag==3){
		_obj.style.height="300px";
		/*alert(i);
		alert(eval('document.cform.productgroupid'+i));
		alert(eval('document.cform.dealerid'+i).value);
		alert(document.cform.dealerid2.value);*/
		strUrl = "ProdSelectPop.jsp?maxitem=10&index=" + index + "&hospitalid="+Number(eval('document.cform.dealerid'+i).value)+"&<%= OvalTools.randomURL() %>";
		//alert(strUrl);
	}
    document.summaryfrm.location.href = strUrl;
}

function popCustomer() {			
	  opt = "dealer";
	  var status = "height=450, width=600, top=100, left=100, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no";
	  var url = "<%=contextPath%>/tdr/dataconfirm/PathOrgSelect.jsp?o_thread=" + Math.random();
	  url += "&globalpccode=99,112,117";
	  if (typeof popwindow != 'undefined') popwindow.close();
	  popwindow = window.open(url, "newwindow", status);
}
	
function page_setOrg(id, name, code) {
	  if(opt == "dealer"){
	  	cform.dealerid.value=id;
	  	cform.dealercode.value = code;
	  	document.getElementById("dealername").value = name;
	  	/*document.cform.prodid.value="";
		document.cform.prodname.value="";
		document.cform.prodcode.value="";
		document.cform.categoryid.value="";
		document.cform.serbunchnotype.value="";*/
		upload();
	  	popwindow.close();
	  }
	  if(opt == "customer"){
	  	cform.customerid.value=id;
	  	cform.customercode.value = code;
	  	cform.customername.value = name;
	  }	
	  opt = "";
	  if (popwindow != null){
	    popwindow.close();
	   }
	}
function page_selectProd() {
        var categoryid=document.cform.categoryid.value;
		var status = "height=400, width=600,top=100,left=100,toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no";
		var url = "<%=contextPath%>/phap/phap.datp/masterdata/kdm/ProductSelect.jsp?o_thread=" + Math.random();
		if(categoryid == 4){
		  categoryid=1;
		  var url = "<%=contextPath%>/phap/phap.datp/masterdata/kdm/ProductSelect.jsp?o_thread=" + Math.random()+"&categoryid="+categoryid;
		}
		if(categoryid ==5){
		  categoryid=2;
		  var url = "<%=contextPath%>/phap/phap.datp/masterdata/kdm/ProductSelect.jsp?o_thread=" + Math.random()+"&categoryid="+categoryid;
		}
		if (typeof popwindow != 'undefined') popwindow.close();
		popwindow = window.open(url, "newwindow", status);
	}
	function page_setproduct(id,umcode,prodcode,prodname){
		document.cform.prodid.value=id;
		document.cform.prodname.value=prodname;
		document.cform.prodcode.value=prodcode;
	}
	function upload(){
	  var d = new Date();
      var year=d.getFullYear();
      var month=d.getMonth()+1;
      document.cform.startyears.value=year;
	  document.cform.startmonths.value=month;
	  document.cform.endyears.value=year;
	  document.cform.endmonths.value=month;
      //alert(year);
      //alert(month);
	}
function getzyldate(){
	<%
	if (periodmanagervector == null)
		periodmanagervector = new Vector();
	for(int i=0;i<periodmanagervector.size();i++){
	%>
	   if(document.cform.startyears.value==<%=((HashMap)periodmanagervector.get(i)).get("year")%> && document.cform.startmonths.value==<%=((HashMap)periodmanagervector.get(i)).get("month")%>){
	       document.cform.startdate.value="<%=((HashMap)periodmanagervector.get(i)).get("startdate")%>";
	   }
	   if(document.cform.endyears.value==<%=((HashMap)periodmanagervector.get(i)).get("year")%> && document.cform.endmonths.value==<%=((HashMap)periodmanagervector.get(i)).get("month")%>){
	       document.cform.enddate.value="<%=((HashMap)periodmanagervector.get(i)).get("enddate")%>";
	   }
	<%}%>
}
</script>
</head>
<body>
<%@ include file="/inc/PageLocation.inc"%>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
	<form name="cform" method="post" action="<%=contextPath %>/Dispatcher" target="_self">
		<input type="hidden" name="pagename" value="p_zylallmonthreport"> 
		<input type="hidden" name="actionname">
		<input type="hidden" name="flowtype">
		<custom:hidden property="startdate"/>
        <custom:hidden property="enddate"/>
        <custom:hidden property="userid" scope="session" name="userinfo" changedName="employeeid"/>
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center" 
style=" repeat-x;  " height="36">
			<tr>
				<td class="td_left" width="20%" ><%= label.getLabelName("L_Dealer") + label.getLabelName("L_Colon") %><custom:text
					property="dealername" size="20" style="border:1px #7F9DB9 solid;"
					 label="L_Dealer" isView="true"/> <a
					onClick="javascript:popCustomer();"><custom:button type="3"
					label="L_Asterisk" imgsrc="flash.gif" border="0" /></a> <custom:hidden
					property="dealerid" /><custom:hidden
					property="dealername" /><custom:hidden
					property="dealercode" /></td>
				<td class="td_left" width="25%"><%= label.getLabelName("L_Month") + label.getLabelName("L_Colon") %><custom:selectdic
					property="startyears" dictType="Years" label="L_Year1"
					defaultValue="----" /><custom:selectdic property="startmonths"
					dictType="Months" label="L_Month" defaultValue="---" />&nbsp;&nbsp;-&nbsp;&nbsp;<custom:selectdic
					property="endyears" dictType="Years" label="L_Year1"
					defaultValue="----" /><custom:selectdic property="endmonths"
					dictType="Months" label="L_Month" defaultValue="---" /></td>
				<td class="td_left" width="15%"><font  color="red" ><%= "物流类型" + label.getLabelName("L_Colon") %></font><custom:selectdic
					dictType="ContactRoleType" property="serbunchnotype"
					defaultValue="------" defaultValueCost="" valueCriteria="2,4"
					label="L_LogisticsType" command="notnull" /></td>
				<td class="td_left" width="15%"><%=label.getLabelName("L_ProdCategory") +  label.getLabelName("L_Colon") %><custom:selectdic
					property="categoryid" dictType="PatentOrPopular" valueCriteria="4,5"
					defaultValueCost="" defaultValue="-----------"
					onchange="changecategorycode();"></custom:selectdic></td>
				
			</tr>
			
			<tr>
			 <td class="td_left" width="20%" ><%=label.getLabelName("L_Province") +  label.getLabelName("L_Colon") %>
				<!-- <td style="width:150px;" class="text-align:left"> -->
					<custom:text property="regionname" size="20" readonly="false" style="border:1px #7F9DB9 solid;" />
                    <a onClick="javascript:popRep();"><custom:button type="3" label="L_Asterisk" imgsrc="flash.gif" border="0" /></a>
                    <custom:hidden property="regioncode" />
              </td>
              
              
              <td class="td_left" width="24%"><%= label.getLabelName("L_Product")+ label.getLabelName("L_Colon") %><custom:text
					property="prodname" readonly="false" size="22" /> <a
					onclick="javascript:page_selectProd();"><custom:button type="3"
					label="L_Asterisk" imgsrc="flash.gif" border="0" /></a> <custom:hidden
					property="prodid" /> <custom:hidden property="prodcode" />
					
					<a href="javascript:page_summary('search')"><img
					src="<%= contextPath %>/images/<%= strLanguageCode %>/go_fy.gif"
					border="0" style="border: 1 solid #000000"></a></td>
				
			</tr>
			
		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="width:100%;height=430;overflow=auto;"><%
		 String third = request.getParameter("third");
		 String serbunchnotype=request.getParameter("serbunchnotype");
		 if(third != null){
		 if(third.equals("R30050")){
		 %> 
		 <script type="text/javascript">
		  var d = new Date();
     	 //var str = d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
         var year=d.getFullYear();
         var month=d.getMonth()+1;
         document.cform.startyears.value=year;
	     document.cform.startmonths.value=month;
	     document.cform.endyears.value=year;
	     document.cform.endmonths.value=month;
		 </script>
		 	<tr>
				<%@ include file="/inc/SummaryAction.inc"%>
			</tr>
		 <%
		   }
		 }
		 if(third == null){
			if(serbunchnotype != null && !(serbunchnotype.equals(""))){%> <%
			  int type=Integer.parseInt(serbunchnotype);
			   if(type==2){
		%>
		<table width="100%" border="1" cellpadding="0"
			bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0"
			align="center">
			<tr class="deepblue-left">

				<td class="title_center"><%= label.getLabelName("L_SaleDate")%></td>
				<!--
            	<td width="10%" class="title_center"><%= label.getLabelName("L_SendBusinessCode")%></td>
            -->
				<td class="title_center"><%= label.getLabelName("L_SendBusinessName") %></td>
				<td class="title_center"><%= label.getLabelName("L_CustomerBeforeName") %></td>
				<td class="title_center"><%= label.getLabelName("L_TerminalName") %></td>
				<td class="title_center"><%= "分配部门" %></td>
				<td class="title_center"><%= "分配代表" %></td>
				<td class="title_center"><%= label.getLabelName("L_ProdCode") %></td>
				<td class="title_center"><%= label.getLabelName("L_ProdName") %></td>
				<td class="title_center"><%= label.getLabelName("L_Quantity") %></td>
				<td class="title_center"><%= label.getLabelName("L_Spec") %></td>
				<td class="title_center"><%= label.getLabelName("L_LotNumber") %></td>
				<td class="title_center"><%= label.getLabelName("L_FlowType") %></td>


			</tr>
			<%
             int i = 0;
             String strClassType = new String(); 
         
          %>
			<logic:iterate id="summary" collection="<%= searchresults %>">
				<%
            HashMap summaryMap = (HashMap)pageContext.getAttribute("summary");
            if(summaryMap == null) summaryMap = new HashMap();
            
            if(i%2 == 1){
              strClassType = "td-listrom";             
            }else{                    
              strClassType = "";
            }
              
            i++;     
          %>
				<tr onmouseover="this.className='tr-over'"
					onmouseout="this.className='<%=JspHelper.filterNull(strClassType)%>'"
					class="<%=JspHelper.filterNull(strClassType)%>">


					<td><custom:write property="startdate" name="summary"
						dataType="date" dataFormat="yyyy-MM-dd" /></td>
					<!--
            <td><custom:write property="orgcode" name="summary"/></td>   -->
					<td><custom:write property="orgname" name="summary" nbsp="true" /></td>
					<td><custom:write property="custoriginame" name="summary"
						nbsp="true" /></td>
					<td><custom:write property="orgname1" name="summary" nbsp="true" /></td>
					<%
					 String area2name=(String)summaryMap.get("area2name");
					 if(area2name == null || area2name.equals("")){
					%>
					<td><%= "非锁" %></td>
					<% }else { %>
					<td><custom:write property="area2name" name="summary" nbsp="true" /></td>
					<%} %>
					<td><custom:write property="salesrepname" name="summary"
						nbsp="true" /></td>
					<td><custom:write property="itemcode" name="summary" nbsp="true" /></td>
					<td><custom:write property="itemnamecn" name="summary" nbsp="true" /></td>
					<td><custom:write property="qty" name="summary" nbsp="true" /></td>
					<td><custom:write property="itemspec" name="summary" nbsp="true" /></td>
					<td><custom:write property="bunchno" name="summary" nbsp="true" /></td>
					<td><custom:write property="salestype" name="summary" nbsp="true" dictType="SalesType"/></td>


				</tr>
			</logic:iterate>
				<% //--------------------------------------  flipping page --%>
			<tr>
				<%@ include file="/inc/SummaryAction.inc"%>
			</tr>
		</table>
		<%} 
		  if(type ==4){
		%>
		<table width="100%" border="1" cellpadding="0"
			bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0"
			align="center">
			<tr class="deepblue-left">

				<td class="title_center"><%="采购日期"%></td>
				<td class="title_center"><%="供应商业名称"%></td>
				<td class="title_center"><%= label.getLabelName("L_ProdCode") %></td>
				<td class="title_center"><%= label.getLabelName("L_ProdName") %></td>
				<td class="title_center"><%= label.getLabelName("L_Quantity") %></td>
				<td class="title_center"><%= label.getLabelName("L_Spec") %></td>
				<td class="title_center"><%= label.getLabelName("L_LotNumber") %></td>
				<td class="title_center"><%= label.getLabelName("L_FlowType") %></td>


			</tr>
			<%
             int i = 0;
             String strClassType = new String(); 
         
          %>
			<logic:iterate id="summary" collection="<%= searchresults %>">
				<%
            HashMap summaryMap = (HashMap)pageContext.getAttribute("summary");
            if(summaryMap == null) summaryMap = new HashMap();
            
            if(i%2 == 1){
              strClassType = "td-listrom";             
            }else{                    
              strClassType = "";
            }
              
            i++;     
          %>
				<tr onmouseover="this.className='tr-over'"
					onmouseout="this.className='<%=JspHelper.filterNull(strClassType)%>'"
					class="<%=JspHelper.filterNull(strClassType)%>">


					<td><custom:write property="startdate" name="summary"
						dataType="date" dataFormat="yyyy-MM-dd" /></td>
					<td><custom:write property="orgname" name="summary" nbsp="true" /></td>
					<td><custom:write property="itemcode" name="summary" nbsp="true" /></td>
					<td><custom:write property="itemnamecn" name="summary" nbsp="true" /></td>
					<td><custom:write property="qty" name="summary" nbsp="true" /></td>
					<td><custom:write property="itemspec" name="summary" nbsp="true" /></td>
					<td><custom:write property="bunchno" name="summary" nbsp="true" /></td>
					<td><custom:write property="salestype" name="summary" nbsp="true" dictType="SalesType"/></td>


				</tr>
			</logic:iterate>
				<% //--------------------------------------  flipping page --%>
			<tr>
				<%@ include file="/inc/SummaryAction.inc"%>
			</tr>
		</table>
		
		<%}} }%>
			<% //--------------------------------------  flipping page --%>

		</div>
		
		<table width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td class="summary_top"></td>
			</tr>
			<tr>
				<td class="td_center"><a onclick="page_excel();"><custom:button
					type="1" label="L_ExcelE" imgsrc="Modify.gif" border="0"
					style="width:100" privilegeCode="MB-LXDC01"/></a>&nbsp; <a onclick="page_csv();"><custom:button
					type="1" label="L_ExportCSV" imgsrc="edit.gif" border="0"
					style="width:80" privilegeCode="MB-LXDC02"/></a></td>
			</tr>
		</table>
		</td>
	</tr>
	</form>
</table>
</body>
</html>
